package p8_5;
import p8_2.Quiz;

public class QuizMaster {
	
	public static void main(String[] args) {
	
	Quiz pupil2 = new Quiz(20,"A");
	Quiz pupil3 = new Quiz(30,"A+");
	Quiz pupil4 = new Quiz(15,"C");
	Quiz pupil5 = new Quiz(5,"F");
	
	
	IMeasurer m = new QuizMeasurer();
	
	DataSet data = new DataSet(m);
	
	data.add(pupil2);
	data.add(pupil3);
	data.add(pupil4);
	data.add(pupil5);
	
	Quiz minQuiz= (Quiz) data.getMinimum();
	System.out.println(minQuiz.getMeasure());

	
	}
	

}
